<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>
	<body>
		<script>
			function factoryCreateObj(name, age, height) {
				var stu = {}
				stu.name = name
				stu.age = age
				stu.height = height
				stu.running = function () {
					console.log('running', stu.name, stu.age, stu.height)
				}

				return stu
			}

			var stu1 = factoryCreateObj('zs', 12, 1.55)
			var stu2 = factoryCreateObj('zsq', 12, 1.55)
			var stu3 = factoryCreateObj('zsasd', 12, 1.55)
			console.log(stu1, stu2, stu3, typeof stu1)
		</script>
	</body>
</html>
